package com.example.ceramics.database.dao;

import com.example.ceramics.entity.CartEntity;
import com.example.ceramics.entity.GoodsEntity;

import java.util.List;

public interface ICartDao {
    int addCart(int goodsId,String account,double goodsPrice);
    int deleteCart(int goodsId,String account);
    int deleteCart(List<CartEntity> cartList);
    int updateNum(int goodsId,String account,int addNum,double goodsPrice);
    boolean hasCart(int goodsId,String account);
    boolean isEmpty(String account);
    List<CartEntity> getCartList(String account);
}
